#include <iostream>
#include <string>
#include "Employee.h"

using namespace std;

Employee::Employee( string first, string last, int money )
{
    setFirstName( first );
    setLastName( last );
    setSalary( money );
}

void Employee::setFirstName( string first )
{
    firstName = first;
}

void Employee::setLastName( string last )
{
    lastName = last;
}

void Employee::setSalary( int money )
{
    salary = (money > 0 ? money : 0);
}

string Employee::getFirstName()
{
    return firstName;
}

string Employee::getLastName()
{
    return lastName;
}

int Employee::getSalary()
{
    return salary;
}

void Employee::displayMessage()
{
    cout << firstName << " " << lastName << "'s yearly salary is : "
        << salary * 12 << " dollars." << endl;
}
